package com.design.mediator;

/**
 * @ClassName Client.java
 * @Description 
 * @author Jon
 * @date 2018年6月15日 下午5:20:06
 */
public class Client {
	public static void main(String[] args) {
		Mediator mediator = new ConcreteMediator();
		ConcreteColleague1 c1 = new ConcreteColleague1(mediator);
		mediator.setC1(c1);
		ConcreteColleague2 c2 = new ConcreteColleague2(mediator);
		mediator.setC2(c2);
		mediator.c1.depMethod1();
		mediator.c2.depMethod2();
	}
}
